public class SubClass extends SuperClass{
    double d;
    String str;
    public SubClass(){
        d=16.0;
        str = "java program";
    }
    public void myPrint(){
        System.out.println("d="+d+",str="+str);
    }
    public void printAll(){
        super.myPrint();
        this.myPrint();
    }
}
